#include <vector>
#include <iostream>

using std::vector;
using std::cout;
using std::endl;

class Solution {
public:
	vector<int> twoSum(vector<int>& nums, int target) {
	vector<int> ve;
		
        for (int i = 0; i < nums.size(); ++i) {
			for (int j = i+1; j < nums.size(); ++j) {
				if (nums[i] + nums[j] == target) {
					ve.push_back(i);
					ve.push_back(j);
					return ve;
				}
			}
        }
		
		return ve;
    }
};

int main () {
	vector<int> exp = vector<int>(0,0);
	
	exp.insert(exp.end(), 3);
	exp.insert(exp.end(), 2);
	exp.insert(exp.end(), 4);
	// exp.insert(exp.end(), 5);

	Solution *sol = new Solution();
	vector<int> res = sol->twoSum(exp, 6);

	cout << res[0] << res[1] << endl;

	return 0;
}
